Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] 회원가입 학번 입력 로직 수정 #280

Merged
merged 8 commits into from
Jun 11, 2024
Merged

Conversation

nodobi
Copy link
Contributor

@nodobi nodobi commented Jun 2, 2024

개요

  • 24학번의 학번의 형식이 2024100xxx 으로 변경됨에 따라 기존의 학번 자동 입력이 문제가 발생

상세 작업 내용

  • 전공 선택을 Spinner 로 하도록 변경

작업 결과물

  • 회원가입 화면

@nodobi nodobi added the fix label Jun 2, 2024
@nodobi nodobi self-assigned this Jun 2, 2024
@nodobi nodobi requested a review from a team as a code owner June 2, 2024 20:22
Copy link
Contributor

@Jokwanhee Jokwanhee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~ 👍 👍

gradle/libs.versions.toml Show resolved Hide resolved

private val _getDeptErrorMessage = MutableLiveData<String>()
val getDeptErrorMessage: LiveData<String> get() = _getDeptErrorMessage
val depts: StateFlow<List<String>> = flow { emit(getDeptNamesUseCase()) }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backing property 에 대해서 알아봐도 좋을 것 같아요!
https://stackoverflow.com/questions/53050257/viewmodel-backing-properties-kotlin

Copy link
Contributor

@Jokwanhee Jokwanhee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다~ 💯

Copy link
Contributor

@ThirFir ThirFir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!


private val _getDeptErrorMessage = MutableLiveData<String>()
val getDeptErrorMessage: LiveData<String> get() = _getDeptErrorMessage
val depts: StateFlow<List<String>> = flow { emit(getDeptNamesUseCase()) }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 부분을 Flow가 아닌 StateFlow로 했어야 하는 이유가 혹시 무엇인가요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flow 로 하게 되는 경우 화면을 다시 불러오게 되는 경우 depts 가 다시 collect 되면서 getDeptNamesUseCase() 가 다시 호출되는거로 알고 있어요.
학과명은 유저가 테스크를 진행하는 동안 바뀔 일이 적은 것이라 생각해서 불필요한 API 호출을 줄이려고 했습니다!

@nodobi nodobi merged commit 0bf5b87 into develop Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants